﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XiMiDal;
using XiMiModel;
using XiMiModelDto;

namespace XiMiBll
{
    public class PhoneBll
    {
        private readonly PhoneDal _phoneDal;
        public PhoneBll(PhoneDal phoneDal)
        {
            _phoneDal = phoneDal;
        }
        public List<ShowModel> Show(int pageindex, int pagesize, string gname, out int totalcount)
        {
            return _phoneDal.Show(pageindex, pagesize, gname, out totalcount);
        }
        public UserModel Login(string uname, string password)
        {
            return _phoneDal.Login(uname, password);
        }
        public int Register(UserModel userModel)
        {
            return _phoneDal.Register(userModel);
        }
        public GoodsModel Fan(int id)
        {
            return _phoneDal.Fan(id);
        }
        public int Add(ShopModel shopModel)
        {
            return _phoneDal.Add(shopModel);
        }
    }
}
